{% extends "blog/base.html" %}

{% block title %}{{ post.title }}{% endblock %}

{% block content %}
  <h1>{{ post.title }}</h1>
  <p class="date">
    Published {{ post.publish }} by {{ post.author }}
  </p>
<!--linebreaks转换换行符未html了换行-->
  {{ post.body|linebreaks }}
<p>
  <a href="{% url 'blog:post_share' post.id %}">
    Share this post
  </a>
</p>
{% endblock %}
